package com.my.screenadapter.sql;

import android.content.Context;
import android.provider.SyncStateContract;

import com.my.screenadapter.MyApplication;

/**
 * Created by ${张英杰} on 2018/6/28.
 */

public class CompanyDao {
    private static volatile CompanyDao instance ;
    private DBUtil util=new DBUtil(MyApplication.getContext(), DBUtil.DATABASE_NAME,null, DBUtil.DATABASE_VERSION);

    private CompanyDao(){
    }
    public static  CompanyDao getInstance(Context context){
        if (instance== null) {
            synchronized (CompanyDao.class){
                if (instance ==null){
                    instance =new CompanyDao();

                }
            }
        }
        return instance;
    }

}
